;
(function() {
	var skill = {
		_bindAcc: function(bind_acc) {
			//格式检查
			bind_acc = parseFloat(bind_acc) || 0;
			if (bind_acc <= 0) {
				throwCusError("抵扣的金额额度不可为空或负数")
			}
			var user = UserCon.get(this.info.user_id);
			if (!this.changeAble()) {
				throwCusError("订单已确认，不能在修改抵扣额度");
			}
			var bus_user_bind = user.getAccInstanceByBudId(this.info.bus_id);
			if (bus_user_bind) {
				console.log("bind_acc", bind_acc);
				bus_user_bind._useMoney(bind_acc);
				this.bind_acc = bind_acc;
				this.save();
			}
		}
	};
	module.exports = skill;
	var db = require("../db/index");
	var CouponCon = require("../coupon/_con");
	var GoodsCon = require("../goods/_con");
	var UserCon = require("../../core/user/_con");
	var BusCon = require("../../core/bus/_con");
	var AchCon = require("../ach/_con");
	var ClassifyCon = require("../bus.classify/_con");
	var TagCon = require("../bus.tag/_con");
	var LeagueCon = require("../league/_con");
	var BuffCon = require("../buff/_con");
	var BusUserBindCon = require("../bus_user_bind/_con");
	var BusGuideCon = require("../bus.guide/_con");
	var CommentCon = require("../comment/_con");
	var config = require("../_include/config");
	var data_cut = require("../_include/data_cut");
	var helper = require("../_include/helper");
	var md5 = require("../_include/md5");
	var $Object = require("../_include/$.Object");
	var $Array = require("../_include/$.Array");
}());